/*
 * TemplateContainerPanel.java
 *
 * Created on 9. Juni 2008, 12:18
 */

package twi.query.view;

import java.util.List;

import twi.OWLModel;
import twi_project.TWI;

import com.hp.hpl.jena.ontology.OntClass;
import com.hp.hpl.jena.util.iterator.Filter;

/**
 * 
 * @author Soeren
 */
public class TemplateContainerPanel extends javax.swing.JPanel {

	/** Creates new form TemplateContainerPanel */
	public TemplateContainerPanel() {
		initComponents();
		OWLModel model = TWI.getInstance().getOntologieModel();
		List list = model.listClasses().filterDrop(new Filter(){
			@Override
			public boolean accept(Object o) {
				if (((OntClass)o).isAnon())
					return false;
				return true;
			}
		}).toList();
		for (int i = 0; i < list.size(); i++){
			
		}
	}

	/**
	 * This method is called from within the constructor to initialize the form.
	 * WARNING: Do NOT modify this code. The content of this method is always
	 * regenerated by the Form Editor.
	 */
	@SuppressWarnings("unchecked")
	// <editor-fold defaultstate="collapsed" desc="Generated
	// Code">//GEN-BEGIN:initComponents
	private void initComponents() {

		jLabel1 = new javax.swing.JLabel();
		jScrollPane1 = new javax.swing.JScrollPane();
		jTextArea1 = new javax.swing.JTextArea();
		jDesktopPane1 = new javax.swing.JDesktopPane();
		jInternalFrame1 = new javax.swing.JInternalFrame();

		jLabel1.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
		jLabel1.setText("Title");
		jLabel1.setName("jLabel1"); // NOI18N

		jScrollPane1.setBorder(javax.swing.BorderFactory
				.createTitledBorder("Description"));
		jScrollPane1.setName("jScrollPane1"); // NOI18N

		jTextArea1.setColumns(20);
		jTextArea1.setRows(3);
		jTextArea1.setName("jTextArea1"); // NOI18N
		jScrollPane1.setViewportView(jTextArea1);

		jDesktopPane1.setBackground(new java.awt.Color(236, 233, 216));
		jDesktopPane1.setBorder(javax.swing.BorderFactory
				.createTitledBorder("Query"));
		jDesktopPane1.setName("jDesktopPane1"); // NOI18N

		jInternalFrame1.setName("jInternalFrame1"); // NOI18N
		jInternalFrame1.setVisible(true);

		javax.swing.GroupLayout jInternalFrame1Layout = new javax.swing.GroupLayout(
				jInternalFrame1.getContentPane());
		jInternalFrame1.getContentPane().setLayout(jInternalFrame1Layout);
		jInternalFrame1Layout.setHorizontalGroup(jInternalFrame1Layout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGap(0, 170, Short.MAX_VALUE));
		jInternalFrame1Layout.setVerticalGroup(jInternalFrame1Layout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGap(0, 125, Short.MAX_VALUE));

		jInternalFrame1.setBounds(60, 30, 180, 160);
		jDesktopPane1.add(jInternalFrame1,
				javax.swing.JLayeredPane.DEFAULT_LAYER);

		javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
		this.setLayout(layout);
		layout
				.setHorizontalGroup(layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								layout
										.createSequentialGroup()
										.addGroup(
												layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addGroup(
																layout
																		.createSequentialGroup()
																		.addGap(
																				150,
																				150,
																				150)
																		.addComponent(
																				jLabel1))
														.addGroup(
																layout
																		.createSequentialGroup()
																		.addContainerGap()
																		.addComponent(
																				jScrollPane1,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				362,
																				Short.MAX_VALUE)))
										.addContainerGap()).addComponent(
								jDesktopPane1,
								javax.swing.GroupLayout.DEFAULT_SIZE, 382,
								Short.MAX_VALUE));
		layout
				.setVerticalGroup(layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								layout
										.createSequentialGroup()
										.addComponent(jLabel1)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(
												jScrollPane1,
												javax.swing.GroupLayout.PREFERRED_SIZE,
												javax.swing.GroupLayout.DEFAULT_SIZE,
												javax.swing.GroupLayout.PREFERRED_SIZE)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(
												jDesktopPane1,
												javax.swing.GroupLayout.DEFAULT_SIZE,
												357, Short.MAX_VALUE)));
	}// </editor-fold>//GEN-END:initComponents

	// Variables declaration - do not modify//GEN-BEGIN:variables
	private javax.swing.JDesktopPane jDesktopPane1;
	private javax.swing.JInternalFrame jInternalFrame1;
	private javax.swing.JLabel jLabel1;
	private javax.swing.JScrollPane jScrollPane1;
	private javax.swing.JTextArea jTextArea1;
	// End of variables declaration//GEN-END:variables

}
